<?php
include_once "ConnectionManager.php";

function addReceiptItem($productId, $receiptId, $quantity, $cost) {
	$query = "INSERT INTO GIAAN_RECEIPTITEM(PRO_ID,RECEIPT_ID,REI_QUANTITY,REI_PRICE) VALUES
			  ($productId, $receiptId, $quantity, $cost)";
	ConnectionManager::getInstance()->setQuery($query);
	ConnectionManager::getInstance()->query();
	return mysql_insert_id();
}

?>